package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单管理对象 orders
 *
 * @author yukuan
 * @date 2022-07-09
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 排队顺序号 */
    @Excel(name = "排队顺序号")
    private Long rank;

    /** 就餐人数 */
    @Excel(name = "就餐人数")
    private Long peopleNumber;

    /** 预计到店时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计到店时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date estimatedTime;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private BigDecimal subtotal;

    /** 是否审核 */
    @Excel(name = "是否审核")
    private Long status;

    /** 餐厅名称 */
    @Excel(name = "餐厅名称")
    private String restaurantName;

    /** 餐厅样貌 */
    @Excel(name = "餐厅样貌")
    private String restaurantAvatar;

    /** 订单等级 */
    @Excel(name = "订单等级")
    private BigDecimal orderPrice;

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setRank(Long rank)
    {
        this.rank = rank;
    }

    public Long getRank()
    {
        return rank;
    }
    public void setPeopleNumber(Long peopleNumber)
    {
        this.peopleNumber = peopleNumber;
    }

    public Long getPeopleNumber()
    {
        return peopleNumber;
    }
    public void setEstimatedTime(Date estimatedTime)
    {
        this.estimatedTime = estimatedTime;
    }

    public Date getEstimatedTime()
    {
        return estimatedTime;
    }
    public void setOrderTime(Date orderTime)
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime()
    {
        return orderTime;
    }
    public void setPaymentTime(Date paymentTime)
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime()
    {
        return paymentTime;
    }
    public void setPaymentMethod(String paymentMethod)
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod()
    {
        return paymentMethod;
    }
    public void setSubtotal(BigDecimal subtotal)
    {
        this.subtotal = subtotal;
    }

    public BigDecimal getSubtotal()
    {
        return subtotal;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setRestaurantName(String restaurantName)
    {
        this.restaurantName = restaurantName;
    }

    public String getRestaurantName()
    {
        return restaurantName;
    }
    public void setRestaurantAvatar(String restaurantAvatar)
    {
        this.restaurantAvatar = restaurantAvatar;
    }

    public String getRestaurantAvatar()
    {
        return restaurantAvatar;
    }
    public void setOrderPrice(BigDecimal orderPrice)
    {
        this.orderPrice = orderPrice;
    }

    public BigDecimal getOrderPrice()
    {
        return orderPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("orderId", getOrderId())
                .append("userId", getUserId())
                .append("rank", getRank())
                .append("peopleNumber", getPeopleNumber())
                .append("estimatedTime", getEstimatedTime())
                .append("orderTime", getOrderTime())
                .append("paymentTime", getPaymentTime())
                .append("paymentMethod", getPaymentMethod())
                .append("subtotal", getSubtotal())
                .append("status", getStatus())
                .append("restaurantName", getRestaurantName())
                .append("restaurantAvatar", getRestaurantAvatar())
                .append("orderPrice", getOrderPrice())
                .toString();
    }
}
